#!/usr/bin/node

const Koa = require('koa'),
      task = require('./lib/task.js')
      logger = require('koa-logger');
const app = new Koa();
app.use(logger());
app.use(async(ctx,next) => {     //M-hello
  ctx.body = 'hello koa! tesk cost: ' + await task() + 'ms..';
});

app.listen(8080);
console.log('hello world');


